const Koa=require("koa")

const Body=require("koa-bodyparser")
const Cors=require("koa-cors")
const router=require("./router")
const app=new Koa()
app.use(Cors())
app.use(Body())
router(app)
app.listen(8888,()=>{
    console.log("成功")
})